package top.kent90.service;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import top.kent90.dao.ZczyAuditItemDao;
import top.kent90.pojo.ZczyAuditItem;

import java.util.List;
import java.util.Map;

/**
 * 审核项目实现类
 */
@Service
public class ZczyAuditItemServiceImpl implements ZczyAuditItemService {

    @Autowired
    ZczyAuditItemDao zczyAuditItemDao;
    /**
     * 根据条件查询审核项目
     *
     * @param map 需要查询的信息
     * @return
     */
    @Override
    public List<ZczyAuditItem> queryByCondition(Map map) {
        return zczyAuditItemDao.queryByCondition(map);
    }

    /**
     * 通过id查询订单
     *
     * @param id
     * @return
     */
    @Override
    public ZczyAuditItem queryById(int id) {
        return zczyAuditItemDao.queryById(id);
    }

    /**
     * 通过id删除订单
     *
     * @param id
     * @return
     */
    @Override
    public int deleteById(int id) {
        return zczyAuditItemDao.deleteById(id);
    }

    /**
     * 添加审核订单
     *
     * @param zczyAuditItem
     * @return
     */
    @Override
    public int addZczyAuditItem(ZczyAuditItem zczyAuditItem) {
        return zczyAuditItemDao.addZczyAuditItem(zczyAuditItem);
    }

    /**
     * 根据id更新审核项目
     *
     * @param map
     * @return
     */
    @Override
    public int updateById(Map map) {
        return zczyAuditItemDao.updateById(map);
    }
}
